package vfs.client.rmi;

import vfs.common.rmi.RmiBroadcastListener;
import vfs.common.tty.Tty;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * User: serge
 * Date: 22.11.13
 * Time: 3:48
 */
public class ClientRmiBroadcastListener extends UnicastRemoteObject implements RmiBroadcastListener
{
    public ClientRmiBroadcastListener() throws RemoteException
    {
    }

    @Override
    public void onBroadcast(String msg) throws RemoteException
    {
        Tty.println(msg);
    }
}
